package com.mxpio.erp.common.equipment.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.mxpioframework.jpa.annotation.Generator;
import com.mxpioframework.security.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @Description: 维修操作历史
 * @Author: chenqiang
 * @Date:   2021-09-23
 * @Version: V1.0
 */
@Data
@EqualsAndHashCode(callSuper=false)
@Entity
@Table(name = "MB_ERP_REPAIR_OPERATION")
@Schema(description="维修操作历史")
public class EquipmentRepairOperation  extends BaseEntity {

	/**主键*/
	@Id
	@Generator
	@Column(name = "ID_", updatable = false)
	@Schema(description = "主键")
	private String id;
	/**维修ID*/
	/*@Column(name = "REPAIR_ID_")
	@Schema(description = "维修ID")
	private String repairId;*/
	/**工单编码*/
	@Column(name = "BIZ_NO_")
	@Schema(description = "维修工单编码")
	private String bizNo;
	/**操作节点*/
	@Column(name = "OPERATE_")
	@Schema(description = "操作节点")
	private String operate;
	/**操作人*/
	@Column(name = "OPERATOR_")
	@Schema(description = "操作人")
	private String operator;
	/**操作时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@Column(name = "OPERATE_TIME_")
	@Schema(description = "操作时间")
	private java.util.Date operateTime;
	/**原因*/
	@Column(name = "REASON_")
	@Schema(description = "原因")
	private String reason;
}
